#include <stdio.h>
#include <time.h>
#include <iostream>

using namespace std;
void main(){
	
	int fps = 15;
	int nFrameStartTime = clock();
	int count = 0;

	while(true){
		if(clock()-nFrameStartTime >= 1000/fps){
			nFrameStartTime = clock();
			count ++;
			cout<<nFrameStartTime<<endl;
		}
	}
	system("pause");
}